var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
    res.render('order', { className: '1609班' });
});

router.post('/submit', function(req, res, next) {
    var data = req.body.number;
    res.json({'code':0,num:data});
});
module.exports = router;